package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.DsParkingCouponMapper;
import com.ruoyi.system.domain.DsParkingCoupon;
import com.ruoyi.system.service.IDsParkingCouponService;

/**
 * 停车劵统计Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-06-13
 */
@Service
public class DsParkingCouponServiceImpl implements IDsParkingCouponService 
{
    @Autowired
    private DsParkingCouponMapper dsParkingCouponMapper;

    /**
     * 查询停车劵统计
     * 
     * @param parkingId 停车劵统计主键
     * @return 停车劵统计
     */
    @Override
    public DsParkingCoupon selectDsParkingCouponByParkingId(Long parkingId)
    {
        return dsParkingCouponMapper.selectDsParkingCouponByParkingId(parkingId);
    }

    /**
     * 查询停车劵统计列表
     * 
     * @param dsParkingCoupon 停车劵统计
     * @return 停车劵统计
     */
    @Override
    public List<DsParkingCoupon> selectDsParkingCouponList(DsParkingCoupon dsParkingCoupon)
    {
        return dsParkingCouponMapper.selectDsParkingCouponList(dsParkingCoupon);
    }

    /**
     * 新增停车劵统计
     * 
     * @param dsParkingCoupon 停车劵统计
     * @return 结果
     */
    @Override
    public int insertDsParkingCoupon(DsParkingCoupon dsParkingCoupon)
    {
        return dsParkingCouponMapper.insertDsParkingCoupon(dsParkingCoupon);
    }

    /**
     * 修改停车劵统计
     * 
     * @param dsParkingCoupon 停车劵统计
     * @return 结果
     */
    @Override
    public int updateDsParkingCoupon(DsParkingCoupon dsParkingCoupon)
    {
        return dsParkingCouponMapper.updateDsParkingCoupon(dsParkingCoupon);
    }

    /**
     * 批量删除停车劵统计
     * 
     * @param parkingIds 需要删除的停车劵统计主键
     * @return 结果
     */
    @Override
    public int deleteDsParkingCouponByParkingIds(Long[] parkingIds)
    {
        return dsParkingCouponMapper.deleteDsParkingCouponByParkingIds(parkingIds);
    }

    /**
     * 删除停车劵统计信息
     * 
     * @param parkingId 停车劵统计主键
     * @return 结果
     */
    @Override
    public int deleteDsParkingCouponByParkingId(Long parkingId)
    {
        return dsParkingCouponMapper.deleteDsParkingCouponByParkingId(parkingId);
    }

    @Override
    public int selectParkingId() {
        return dsParkingCouponMapper.selectParkingId();
    }
}
